package lab02.test05;

/**
 * Created by 婷婷 on 2017/10/15.
 */
public class Cube {
    //属性，长，宽，高
    private int length;
    private int wide;
    private int high;

    //定义一个对三个变量初始化的方法
    public void knownConditions(int length, int wide, int high){
        this.length = length;
        this.wide = wide;
        this.high = high;
    }

    //定义一个求立方体体积的方法
    public int volumeOfCube(){
        int volume;
        volume = length*wide*high;
        //返回立方体的面积
        return volume;
    }
}
